import 'package:flutter/material.dart';
import 'dart:async';

class LoadingPage extends StatefulWidget {
  @override
  State<StatefulWidget> createState() {
    return new _LoadingState();
  }
}

class _LoadingState extends State<LoadingPage> {
  final String url =
      "http://img4.2345.com/duoteimg/zixunImg/local/2017/09/26/15063907774801.jpg";

  @override
  void initState() {
    super.initState();
    new Future.delayed(Duration(seconds: 3), () {
      print('微信启动中...');
      Navigator.of(context).pushReplacementNamed("app");
    });
  }

  @override
  Widget build(BuildContext context) {
    return Container(
      child: Image.asset(
        'images/login_app.png',
        fit: BoxFit.contain,
      ),
    );
  }
}
